package cn.school.workflow.dao;

import cn.school.attendance.classes.vo.ClassesAttendanceInfoPageParam;
import cn.school.attendance.classes.vo.LeaveAndNotArrivedStudentInfoVo;
import cn.school.workflow.vo.StudentLeaveApplyVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface StudentLeaveApplyDao extends BaseMapper<StudentLeaveApplyVO> {
	List<Map> getListByLastSenvenDay();

	List<String> getLeaveStuList(@Param("targetDate") String targetDate);

	List<LeaveAndNotArrivedStudentInfoVo> getLeaveStudentInfoList(ClassesAttendanceInfoPageParam param);
	//根据班级ID查询已请假的学生id
	List<Long> getLeaveStudentIdList(ClassesAttendanceInfoPageParam classesAttendanceInfoPageParam);

    List<StudentLeaveApplyVO> findIsExistLeaveByDate(@Param("startDate")String startDate,
													 @Param("endDate")String endDate,
													 @Param("studentId")Long studentId);
}
